<? include_once("config.php")?>
<!doctype html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no,width=device-width,height=device-height">
        <? require_once('title.php');?>
        <link href="favicon.ico" rel="shortcut icon">
        <link rel="stylesheet" href="css/common/swiper.css">
        <link rel="stylesheet" href="css/common/base.css">
        <link rel="stylesheet" href="css/common/media.css">
        <link rel="stylesheet" href="css/common/animation.css">
        <link rel="stylesheet" href="css/recruit/style.css">
    </head>
    <body>
        <div class="beginning left flex flex-align-items">
                <i class="line top"></i>
                <i class="line bottom"></i>
                <img src="img/common/beginningLogo.png" alt="入场logo图">
        </div>
        <div class="beginning right flex flex-align-items">
                <i class="line top"></i>
                <i class="line bottom"></i>
                <img src="img/common/beginningLogoTxt.png" alt="入场logo文字">
        </div>
        <div class="cutLetter flex flex-align-items flex-justify-content">
            <p>创意</p>
            <p class="mid">规范</p>
            <p>智能</p>
        </div>
        <div class="container">
            <? require_once('header.php');?>
			<?
			 $typeID=$_REQUEST['gid']?$_REQUEST['gid']:0;
			 $linkurl =  $_SERVER["PHP_SELF"]."";
			 
			switch($typeID){
			 case 0:
				  $title="校园招聘";
				  break;
			 case 1:
				  $title="社会招聘";
			  break;
			 case 2:
				  $title="公司实习";
				   break;
			
			}
			 ?> 
            <main>
                 <div class="recruit ready fluid">
                    <div class="title">
                        <p class="chn"><span>人才招聘</span></p>
                        <p class="eng"><span>JOIN</span></p>
                        <i class="tp horizontal"></i>
                        <i class="lft vertical"></i>
                        <i class="btm horizontal"></i>
                        <i class="rht vertical"></i>
                        <div class="sideNav flex">
                            <a href="recruit.php?gid=0" class="flex flex-align-items <? if($typeID==0){?> current <? }?>">
                                <span class="line"></span>校园招聘
                            </a>
                            <a href="recruit.php?gid=1" class="flex flex-align-items  <? if($typeID==1){?> current <? }?>">
                                <span class="line"></span>社会招聘
                            </a>
                            <a href="recruit.php?gid=2" class="flex flex-align-items  <? if($typeID==2){?> current <? }?>">
                                <span class="line"></span>公司实习
                            </a>
                        </div>
                    </div>
                    
                    <div class="contn">
					
                        <div class="emplyList">
                            <div class="item name">
                                <div class="itemHead">
                                    <div class="lft flex">
                                        <span>职位名称</span>
                                        <span>职能</span>
                                        <span>月薪</span>
                                    </div>
                                    <div class="rht flex">
                                        <span>学历</span>
                                        <span>操作</span>
                                    </div>
                                </div>
                            </div>
							
		
						<? 
							$newsObj=newslist("$title","cn","0","6");
							$newsArr=$newsObj['newsArr'];
							foreach($newsArr as $newsList){
						?>
						
						<div class="item postn">
                                <div class="itemHead">
                                    <div class="lft flex">
                                        <span><?=$newsList->TITLE?></span>
                                        <span><?=$newsList->ZN?></span>
                                        <span><?=$newsList->YX?></span>
                                    </div>
                                    <div class="rht flex">
                                        <span><?=$newsList->XL?></span>
                                        <p class="flex flex-align-items">
                                            <span class="marks">
                                                <i></i>
                                                <i></i>
                                            </span>
                                            <span class="flip">
                                                <em>展开</em>
                                                <em>收起</em>
                                            </span>
                                        </p>
                                    </div>
                                </div>
                                <div class="details">
                                    <div class="content">
                                        <p class="delay-1">
                                            工作内容:
                                           <?=$newsList->GZNR?>
                                        </p>
                                        <p class="delay-2">
                                            职位要求:
                                            <?=$newsList->ZWYQ?>
                                        </p>
                                        <p class="delay-3">
                                            工作时间:
                                            <?=$newsList->GZSJ?>
                                        </p>
                                    </div>
                                </div>
                            </div>
		
						<? }?>
			
                        </div>

                        <div class="choosePage flex flex-align-items flex-justify-content">
							 <?
							$newsPagerShow=$newsObj['pagerShow'];
							$newsPagerShow->setFirstText('First');
							$newsPagerShow->setPrevText('Previous');
							$newsPagerShow->setNextText('Next');
							$newsPagerShow->setLastText('Last');
							$newsPagerShow->setStyle('2');
							$newsPagerShow->lanAll = "Total:"; 
							$newsPagerShow->lanItems = "";
							echo $newsPagerShow->render(); 
							?>
                        </div>
                    </div>
                </div>
            </main>
	<? require_once('footer.php');?>
        </div>
        
        <script src="js/common/swiper.js"></script>
        <script src="js/common/jquery.js"></script>
        <script src="js/common/common.js"></script>
        <script src="js/common/choosePage.js"></script>
        <script src="js/common/animation.js"></script>
        <script src="js/recruit/index.js"></script>
    </body>
</html>